    function createFreeProblem(text, sex, age,historyId,token) {
        var partner = "yunyanxing";
        var params = [{
            type: 'text',
            text: text
        }, {
            type: 'patient_meta',
            sex: sex,
            age: age
        }];
        var data = {
            content: JSON.stringify(params),
            partner: partner
        };
        var ajaxUrl = "/cooperation/wap/create_free_problem/";
        var problem_id_android = "";

        $.ajax({
            url: ajaxUrl,
            type: "POST",
            dataType: "json",
            data: data,
            success: function(res) {

            if (res.error == 0) {
            var uhData = {
                        content: JSON.stringify(params),
                        token: token,
                        problem_id: res.problem_id,
                        recordid:historyId
            };
            $.ajax({
            content: JSON.stringify(params),
            url: "http://api.uhylab.com/uapp/problem/save",
            dataType:"jsonp",
            data: uhData,
            success: function(code){

            }
            });
                   setTimeout(function() {
                   location.href = "/cooperation/wap/problem_detail_page/?partner="+partner+"&problem_id="+res.problem_id;
                   }, 2000);
                }else{
                  alert(res.error_msg);
                }

            }
        });


    }


